package game
{
	import flash.display.DisplayObject;
	import flash.display.MovieClip;
	import flash.display.Sprite;
	
	import game.gamescene.GameScene;
	
	public class GameAssetsFactory extends Sprite implements IAssetsFactory
	{
		public function GameAssetsFactory()
		{
			super();
		}
		
		public function getElement(id:String):DisplayObject
		{
			var mc:MovieClip;
			
			switch ( id )
			{
				case "GameScene":
					var scene:GameScene = new GameScene();
					return scene;
				break;

				///  ITEMS //////////////////////////////// 
				case "GAME_ITEM_BALL":
					mc = new GAME_ITEM_BALL();
					return mc;
					break;

				case "GAME_ITEM_BALL_LAMER":
					mc = new GAME_ITEM_BALL_LAMER();
					return mc;
					break;

				case "GAME_ITEM_IPAD":
					mc = new GAME_ITEM_IPAD();
					return mc;
					break;

				case "GAME_ITEM_PILLOW":
					mc = new GAME_ITEM_PILLOW();
					return mc;
					break;

				case "GAME_ITEM_BOWL_BALL":
					mc = new GAME_ITEM_BOWL_BALL();
					return mc;
					break;

				case "GAME_ITEM_ANVIL":
					mc = new GAME_ITEM_ANVIL();
					return mc;
					break;

				case "GAME_ITEM_SKULL":
					mc = new GAME_ITEM_SKULL();
					return mc;
					break;

				///  ENEMIES  //////////////////////////////// 
				case "GAME_ENEMY_1":
					mc = new GAME_ENEMY_1();
					return mc;
					break;
				
				/*case "GAME_ENEMY_2":
					mc = new GAME_ENEMY_2();
					return mc;
					break;
				*/
			}
			
			return null;
		}
	}
}